package com.ruoyi.platform.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 覆盖区域对象 regions
 * 
 * @author ruoyi
 * @date 2025-10-21
 */
public class Regions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 区域ID */
    @Excel(name = "区域ID")
    private String regionId;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String name;

    /** 区域编码 */
    @Excel(name = "区域编码")
    private String code;

    /** 区域边界坐标 */
    @Excel(name = "区域边界坐标")
    private String boundary;

    /** 中心纬度 */
    @Excel(name = "中心纬度")
    private BigDecimal centerLatitude;

    /** 中心经度 */
    @Excel(name = "中心经度")
    private BigDecimal centerLongitude;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 删除时间（软删除） */
    @Excel(name = "删除时间", readConverterExp = "软=删除")
    private Date deletedAt;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private String externField1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private String externField2;

    public void setRegionId(String regionId) 
    {
        this.regionId = regionId;
    }

    public String getRegionId() 
    {
        return regionId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setBoundary(String boundary) 
    {
        this.boundary = boundary;
    }

    public String getBoundary() 
    {
        return boundary;
    }

    public void setCenterLatitude(BigDecimal centerLatitude) 
    {
        this.centerLatitude = centerLatitude;
    }

    public BigDecimal getCenterLatitude() 
    {
        return centerLatitude;
    }

    public void setCenterLongitude(BigDecimal centerLongitude) 
    {
        this.centerLongitude = centerLongitude;
    }

    public BigDecimal getCenterLongitude() 
    {
        return centerLongitude;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }

    public void setExternField1(String externField1) 
    {
        this.externField1 = externField1;
    }

    public String getExternField1() 
    {
        return externField1;
    }

    public void setExternField2(String externField2) 
    {
        this.externField2 = externField2;
    }

    public String getExternField2() 
    {
        return externField2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("regionId", getRegionId())
            .append("name", getName())
            .append("code", getCode())
            .append("boundary", getBoundary())
            .append("centerLatitude", getCenterLatitude())
            .append("centerLongitude", getCenterLongitude())
            .append("status", getStatus())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("deletedAt", getDeletedAt())
            .append("externField1", getExternField1())
            .append("externField2", getExternField2())
            .toString();
    }
}
